package com.mdd.common.mapper.system;

import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.system.SystemConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 系统配置
 */
@Mapper
public interface SystemConfigMapper extends IBaseMapper<SystemConfig> {

    @Select("select * from la_system_config where type =#{type} and name =#{name}")
    SystemConfig selectByTypeAndName(@Param("type") String type, @Param("name") String name);

    @Select("select * from la_system_config where type =#{type}")
    List<SystemConfig> getAppId(@Param("type") String type);
}
